<?php
$mod = 'blank';
$title = '订单列表';
require_once('head.php');
?>
<style>
	@media (max-width: 576px) {
		.modal-dialog {
			max-width: 90%;
			margin: auto;
		}
	}


	/* 移除默认的单选按钮样式 */
	input[type="checkbox"] {
		-webkit-appearance: none;
		-moz-appearance: none;
		appearance: none;
		width: 20px;
		height: 20px;
		border: 2px solid #ccc;
		border-radius: 4px;
		outline: none;
		cursor: pointer;
		position: relative;
		margin-right: 8px;
		/* 调整与标签的间距 */
		transition: border-color 0.3s ease;
		/* 添加过渡效果 */
	}

	/* 自定义选中状态的单选按钮样式 */
	input[type="checkbox"]:checked {
		border-color: #ff6b6b;
		选中时边框颜色变化
	}

	/* 自定义选中状态的单选按钮内部样式 */
	input[type="checkbox"]:checked::before,
	input[type="checkbox"]:checked::after {
		content: '';
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		width: 6px;
		/* 调整爱心的大小 */
		height: 10px;
		/* 调整爱心的大小 */
		background-color: #ff6b6b;
		border-radius: 50px 50px 0 0;
	}

	input[type="checkbox"]:checked::before {
		transform: translate(-50%, -50%) rotate(-45deg);
		left: 35%;
		/* 调整爱心的位置 */
	}

	input[type="checkbox"]:checked::after {
		transform: translate(-50%, -50%) rotate(45deg);
		left: 65%;
		/* 调整爱心的位置 */
	}

	/* 自定义未选中状态的单选按钮内部样式 */
	input[type="checkbox"]::before {
		content: '';
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		width: 12px;
		height: 12px;
		background-color: transparent;
		border-radius: 50%;
		transition: background-color 0.3s ease;
		/* 添加过渡效果 */
	}

	/* 自定义标签样式 */
	label {
		cursor: pointer;
	}

	/* 工单 */
	/* From Uiverse.io by vinodjangid07 */
	.button {
		width: 25px;
		height: 25px;
		position: relative;
		/* display: flex; */
		align-items: center;
		justify-content: center;
		background-color: rgb(44, 44, 44);
		border-radius: 50%;
		cursor: pointer;
		transition-duration: .3s;
		box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.13);
		border: none;
	}

	.bell {
		width: 18px;
	}

	.bell path {
		fill: white;
	}

	.button:hover {
		background-color: rgb(56, 56, 56);
	}

	.button:hover .bell {
		animation: bellRing 0.9s both;
	}

	/* bell ringing animation keyframes*/
	@keyframes bellRing {

		0%,
		100% {
			transform-origin: top;
		}

		15% {
			transform: rotateZ(10deg);
		}

		30% {
			transform: rotateZ(-10deg);
		}

		45% {
			transform: rotateZ(5deg);
		}

		60% {
			transform: rotateZ(-5deg);
		}

		75% {
			transform: rotateZ(2deg);
		}
	}

	.button:active {
		transform: scale(0.8);
	}

	.layui-btn-primary:hover {
		border-color: #33cabb !important;

	}

	.layui-btn-xs {
		margin-top: 2px !important;
	}

	.el-button--primary.is-plain {
		border-color: #ffffff !important;
		color: #ffffff !important;
		background: #909399 !important;
	}
</style>


<div class="modal fade" id="modal-log" tabindex="-1" role="dialog" aria-hidden="true">
	<div class="modal-dialog modal-dialog-scrollable modal-dialog-centered" role="document">
		<div class="modal-content" style="border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); border: none;">
			<div class="modal-header" style="background-color: #33CABB; border-bottom: none; padding: 15px 20px; border-radius: 12px 12px 0 0;">
				<h5 class="modal-title" style="font-weight: 600; color: #fff; font-size: 16px;"><i class="fa fa-list-alt mr-2"></i>日志详情</h5>
				<button type="button" class="close" data-dismiss="modal" aria-label="Close" style="color: #fff; opacity: 0.8; text-shadow: none;">
					<span aria-hidden="true">&times;</span>
				</button>
			</div>
			<div class="modal-body" style="padding: 0;">
				<ul class="list-group list-group-flush" id="log-list"></ul>
			</div>
			<div class="modal-footer" style="background-color: #f8f9fa; border-top: none; border-radius: 0 0 12px 12px; padding: 12px 20px;">
				<button type="button" class="btn btn-primary" data-dismiss="modal" style="background-color: #33CABB; border: none; border-radius: 30px; padding: 8px 20px; font-weight: 500; box-shadow: 0 3px 6px rgba(50,197,210,0.3); transition: all 0.3s;">知道了</button>
			</div>
		</div>
	</div>
</div>




<div class="app-content-body ">
	<div class="wrapper-md control">
		<div class="panel panel-default" id="orderlist"
			style="box-shadow: 3px 3px 8px #d1d9e6, -3px -3px 8px #d1d9e6;border-radius: 7px;">

			<!--疑问解答-->
			<div class="modal fade" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
				<div class="modal-dialog" role="document">
					<div class="modal-content" style="border-radius: 15px;">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
									aria-hidden="true">&times;</span></button>
							<h4 class="modal-title" id="myModalLabel">先把这里的内容看一遍 ~</h4>
						</div>
						<div class="modal-body">

							<div class="tab-content" style="overflow: auto;height: 50vh;">
								<!--<blockquote>-->
								<el-collapse v-model="activeName" accordion>
									<el-collapse-item title="有问题按格式用问题反馈上报。" name="5">
										<div>格式：渠道+订单id 下单账号 上号截图 问题详情。</div>
										<div>先自己上号排查，没上号排查不答复。</div>
										<div>所有渠道都是，一门一门的刷！！</div>
										<div>查不到课程渠道反馈格式：<br>网址：学校:账号：密码：</div>
									</el-collapse-item>
									<el-collapse-item title="下单常见问题？" name="2">
										<div>
											<li>1、请务必查看项目下单须知和说明，防止出现错误！</li>
											<li>2、同商品重复下单，请修改密码后再下！</li>
											<li>3、默认下单格式为<span style="color: red;">账号、密码(空格分开)！</span></li>
											<li>4、查课出现问题请及时联系上级或发工单！</li>
											<li>5、部分商品取消订单也无法停止，最简单的方法就是让客户改密码！</li>
											<li>6、有漏刷现象，可以点补刷或者换渠道下单！</li>
											<li>7、下单最晚3天左右有进度</li>
											<li>8、目前夜间不跑单的情况下，白天的上号时间为8-23点</li>

										</div>
									</el-collapse-item>

                                    <el-collapse-item title="重复订单？" name="666">
										<div>重复订单是平台对一些用户二次下单的保护</div>
											<div>因为二次下单毫无意义，白白浪费钱</div>
											<div>显示重复订单，24小时左右会自动退款可在-个人操作日志--重复自动退款</div>
												<div>如果有个别原因需要提交重复订单，需要联系上级</div>
									</el-collapse-item>
									  <el-collapse-item title="退款未到账？" name="661">
										<div>订单显示已退款但是，查看积分时未到账</div>
												<div>这个不用担心，平台会自动处理</div>
											<div>，24小时左右会自动退款可在-个人操作日志--自动退款</div>
										
									</el-collapse-item>

									<el-collapse-item title="kcid异常是什么问题？" name="6">
										<div>可以在个人操作日志查看<br>操作内容-下单账号-查询<br>可以查到你的操作问题<br>用什么渠道查询就用什么提交
										</div>
									</el-collapse-item>

									<el-collapse-item title="订单在什么情况下可以退款？" name="7">
										<div>建议你退出重新登录看看<br><span style="color: red;">免责说明使用条款</span>
											<br>&nbsp;&nbsp;&nbsp;&nbsp;如订单中途出现问题，不是中途改密码，顶号，恶意提交，嫌弃慢，官方更新，等用户所为等，订单退款需要反馈上级，和货源方协商退款之后，才会退款，如果货源方不退款则本站也无法执行退款
											<br>&nbsp;&nbsp;&nbsp;&nbsp;货源方突发情况：不限于;跑步;强国;打卡;网课;等等货源方出现问题均无法退款！
											货源方跑路，等各种原因导致货源方余额无法消耗，货源方账号内余额和欢乐豆并于差别，本站都无法倒贴赔款！
										</div>
									</el-collapse-item>
									<el-collapse-item title="U校园/AI版进度问题？" name="22">
										<div>由于官方原因，时长和分数会延时到账，<br>
											具体表现：平台显示0分0时长，上号学习记录页面也无分数时长，但任务点变绿，无需补刷，等待即可。
											<br>&nbsp;&nbsp;&nbsp;&nbsp;时长低的先不要自己重刷，每天凌晨2点后台有程序会自己筛选当天所有时长低订单重刷，订单高峰期时候，U校园官方后台时长显示更新不及时，即使现在显示0时长，实际上在U校园后台已经存在数据，你再重刷就是在叠加时长，重刷多少次叠加多少遍时长回溯同理，假设
											40小时时候重刷 回溯到22小时 会减18小时，但是由于官方的进度延迟，此时还是显示40小时，你再重刷减18小时。
											<br>&nbsp;&nbsp;&nbsp;不要再讲订单跑得慢的问题了，除了高峰期下单基本都是马上上号的，跑单线程数分配的很足，慢是慢在被官方提交速率限制，用户自己在U校园上面答题稍微快一点都会给你提示“提交频率过快，请稍后重试”再一个AI版会查答题速率的，答太快直接清空时长分数。总之不要来讲为什么这么慢，半个小时完成一本书的情况已经一去不复返了。
										</div>
									</el-collapse-item>
									<el-collapse-item title="U校园AI版班测分问题？" name="23">
										<div>无脑下程序就完事了，官方答案100%满分，看不到分是老师没批阅。</div>
									</el-collapse-item>
									<el-collapse-item title="U校园订单异常？" name="233">
										<div>不用管 源台会自己处理这就是质量高，有售后保障</div>
									</el-collapse-item>
									<el-collapse-item title="智慧职教搞不懂？" name="2">
										<div>课在哪个地址里下对应商品，首选程序。</div>
										<div>MOOC官网：https://mooc.icve.com.cn/</div>
										<div>职教云/SPOC官网：https://zjy2.icve.com.cn/</div>
										<div>资源库官网：https://zyk.icve.com.cn/</div>
									</el-collapse-item>
									<el-collapse-item title="继续教育学习通查不到课？" name="3">
										<div>登录地址是jxjy.chaoxing这种的无法处理。</div>
									</el-collapse-item>
									<el-collapse-item title="学习通考试疑问？" name="6">
										<div>课程里的考试下做考试，列表、收件箱和课程里有多个考试下对应商品。</div>
									</el-collapse-item>
									<el-collapse-item title="学习通特殊课程？" name="7">
										<div>
											所有技术都可以处理人脸，闯关，逐一解锁课，其中闯关和逐一解锁的课部分老师会设置测验须及格或满分才能进行下一个任务，如有卡住自行上号给卡住的题过了在重刷就行了。
										</div>
									</el-collapse-item>
									<el-collapse-item title="学习通刷不上？" name="23">
										<div>第一是否在其他地方有过代刷。<br>第二是否多个渠道下单了(订单列表用下单账号查询)
											<br>第三用户是否顶号了，或者用手机点击进入章节<br>第四上号检查账号密码是否错误<br>第五课程是否结课，或者老师设置了不计算任务点<br>第六上号在课程详情查看总课时多长，看了多长，如果观看时长大于课程总时长就是被清了（补刷即可）<br>第一第二建议改密码在重新下单
										</div>
									</el-collapse-item>
									<el-collapse-item title="学习通特殊课程秒刷不走进度？" name="8">
										<div>闯关、逐一解锁课禁止下单秒刷，人脸课可以秒刷。</div>
									</el-collapse-item>
									<el-collapse-item title="学习通/智慧树是否自动考试？" name="9">
										<div>只要你下单的时候号里有考试并且有显示开考时间到时间了系统自动考，急单或者时间变更或者试卷后期发的请自行补刷。</div>
									</el-collapse-item>
									<el-collapse-item title="智慧树常见问题？" name="100">
										<div>
											<li>1、完成时间：<span style="color: red;">慢刷10-20天 秒刷基本秒上号 10分钟完成</span></li>
											<li>2、处理内容：<span style="color: blue;">视频+测试+习惯分+见面课+考试 ps:秒刷没有习惯分</span>
											</li>
											<li>3、<span style="color: red;">建议【棚子】慢刷</span>，截止前48小时会自动全部学完！</li>
											<li>4、慢刷每天走30分钟视频进度，当习惯天数学习完毕后，会一次性将剩下的内容完成！</li>
											<li>5、具体如何查看当天刷没刷，请在课程-成绩-查看我的平时分中查看！</li>
											<li>6、秒刷不包习惯分，非必要不要下秒刷。</li>
											<li>7、秒刷会一次性将所有内容全部刷完，如果见面课未开放，后续请点补刷！</li>
										</div>
									</el-collapse-item>
									<el-collapse-item title="智慧树翻转课和兴趣课？" name="10">
										<div>翻转课只处理学习资源做不了题，兴趣课处理不了不要下单。</div>
									</el-collapse-item>
									<el-collapse-item title="智慧树智慧共享课和AI课？" name="31">
										<div>胡同、棚子、独家支持智慧共享课，支持AI课。</div>
									</el-collapse-item>
									<el-collapse-item title="智慧树见面课和互动分？" name="11">
										<div>结课前系统会统一秒完，漏秒的重刷就秒了，所有技术基本都是可以把分拿满，极个别情况下会差个几分。</div>
									</el-collapse-item>
									<el-collapse-item title="提速刷课异常？" name="12">
										<div>不管是学习通还是智慧树只要加速刷课就会概率清进度，重刷到不清即可。</div>
									</el-collapse-item>
									<el-collapse-item title="国开进度条不满？" name="15">
										<div>国开只处理包分项目不用看进度条，期末时期只处理题。</div>
									</el-collapse-item>
									<el-collapse-item title="U校园进度不满？" name="13">
										<div>限制只取第一次作答记录或过期/未激活/未开放，如果不是以上问题重刷即可。</div>
									</el-collapse-item>
									<el-collapse-item title="雨课堂不走进度？" name="14">
										<div>自行上号查看有课件么，直播/签到不包。</div>
									</el-collapse-item>

									<el-collapse-item title="智慧职教常见问题？" name="166">
										<div>
											<li>1、完成时间：<span style="color: red;">基本秒上号 10分钟完成</span></li>
											<li>2、处理内容：<span
													style="color: blue;">[视频+音频+图文+文档+富媒体]、[测验+作业+考试+随机试卷+附件作业]</span>
											</li>
											<li>3、智慧职教类型有好几种，看清楚再下单！</li>
											<li>4、智慧职教推荐【棚子】【高校】！</li>
										</div>
									</el-collapse-item>
									<el-collapse-item title="智慧职教低分/没做？" name="16">
										<div>低分的情况重刷即可满分，如果有部分试卷没做，自行上号打开任意试卷做几道题退出试卷后重刷即可。</div>
									</el-collapse-item>
									<el-collapse-item title="Welearn进度/时长不满？" name="17">
										<div>上号自行排查，基本上就是单元未开放或者单元过期导致或课程未开放/过期的。</div>
									</el-collapse-item>
									<el-collapse-item title="论文撰写常见问题？" name="177">
										<div>
											<li>1、完成时间：<span style="color: red;">5分钟内完成</span></li>
											<li>2、提交格式：<span style="color: blue;">字数 邮箱 题目</span></li>
											<li>3、<span style="color: red;">先下单再去编辑</span>，可选择随机目录和自定义目录。</li>
											<li>4、自定义可以点编辑目录推荐目录的基础上修改或者新增 [章节/小节标题以及字数]。</li>
											<li>5、成为目标目录，系统将通过目标目录为你撰写文章，注意格式。</li>
											<li>6、可以自己稍微修改格式也可以让客户自己改模板定制联系上级。</li>
											<li>7、能过98%论文网址查重。</li>
											<li>8、欢迎尝试，显示完成即可访问链接下载！</li>
											<li>9、因编辑目录存在修改性，已完成后重刷会失效！</li>
											<li>10、如果显示失败点重刷，重新编辑即可，一直失败请反馈上级！</li>
											<li>11、例如：https://nishang.site 人工智能在鱼丸配方优化中的应用.docx</li>
										</div>
									</el-collapse-item>


							</div>
							<div class="modal-footer">
								<button
									style="margin-left: 6px; font-size: 13px;background-color: #33CABB;color: white;"
									type="button" data-dismiss="modal" class="el-button "
									@click="$message({ message: '靓仔，好好学习！', type:'success' })">知道啦~</button>
							</div>
						</div>
					</div>
				</div>
			</div>

			<div class="panel-heading font-bold layui-bg-blue"
				style="box-shadow: 3px 3px 8px #d1d9e6, -3px -3px 8px #d1d9e6; border-radius: 7px;background-color: #33cabb!important; ">
				订单列表
				(状态同步不及时，有时需手动更新)</div>
			<div class="panel-body" style="box-shadow: 3px 3px 8px #d1d9e6, -3px -3px 8px #d1d9e6;border-radius: 7px;">
				<div class="form-horizontal devform">
					<div class="el-form layui-row layui-col-space10">
						<div class="layui-col-md2 layui-col-sm3 layui-col-xs6">
							<el-select id="select" v-model="cx.cid" filterable placeholder="请选择状态"
								style="background: url('../index/arrow.png') no-repeat scroll 99%;width:100%">
								<el-option label="请选择商品分类" value=></el-option>
								<?php
								$a = $DB->query("select * from qingka_wangke_class where status=1 ");
								while ($row = $DB->fetch($a)) {
									echo '<el-option label="' . $row['name'] . '" value="' . $row['cid'] . '"></el-option>';
								}
								?>
								<!--<el-option label="$row['name']" value="$row['cid']"></el-option>-->
							</el-select>
						</div>
						<div class="layui-col-md2 layui-col-sm3 layui-col-xs6">
							<el-select id="select" v-model="cx.status_text" filterable placeholder="请选择订单状态"
								style="background: url('../index/arrow.png') no-repeat scroll 99%;width:100%">
								<el-option label="请选择订单状态" value=></el-option>
								<el-option label="待处理" value="待处理"></el-option>
								<el-option label="待重刷" value="待重刷"></el-option>
								<el-option label="已提交" value="已提交"></el-option>
								<el-option label="进行中" value="进行中"></el-option>
								<el-option label="已暂停" value="已暂停"></el-option>
								<el-option label="队列中" value="队列中"></el-option>
								<el-option label="考试中" value="考试中"></el-option>
								<el-option label="等待考试" value="等待考试"></el-option>
								<el-option label="平时分" value="平时分"></el-option>
								<el-option label="已完成" value="已完成"></el-option>
								<el-option label="补刷中" value="补刷中"></el-option>
								<el-option label="异常" value="异常"></el-option>
								<el-option label="密码错误" value="密码错误"></el-option>
								<el-option label="待更新" value="待更新"></el-option>
								<el-option label="已取消" value="已取消"></el-option>
								<el-option label="已退款" value="已退款"></el-option>
								<el-option label="休息中" value="休息中"></el-option>
								<el-option label="任务完成" value="任务完成"></el-option>
								<el-option label="学习完成" value="学习完成 | 形考完成状态：考试完成"></el-option>
								<el-option label="失败" value="失败"></el-option>
							</el-select>
						</div>
						<div class="layui-col-md2 layui-col-sm3 layui-col-xs6" v-if="row.uid==1">
							<el-select id="select" v-model="cx.dock" filterable placeholder="请选择处理状态"
								style="background: url('../index/arrow.png') no-repeat scroll 99%;width:100%">
								<el-option label="请选择处理状态" value=></el-option>
								<el-option label="待处理" value="0"></el-option>
								<el-option label="处理成功" value="1"></el-option>
								<el-option label="处理失败" value="2"></el-option>
								<el-option label="重复下单" value="3"></el-option>
								<el-option label="已取消" value="4"></el-option>
								<el-option label="我的" value="99"></option>
							</el-select>
						</div>
						<div class="layui-col-md2 layui-col-sm3 layui-col-xs6">
							<el-select id="select" v-model="cx.pagesize" filterable placeholder="请选择每页订单数量"
								style="background: url('../index/arrow.png') no-repeat scroll 99%;width:100%">
								<el-option label="请选择每页订单数量" value="25"></el-option>
								<el-option label="50/页" value="50"></el-option>
								<el-option label="100/页" value="100"></el-option>
								<el-option label="200/页" value="200"></el-option>
								<el-option label="500/页" value="500"></el-option>
								<el-option label="1000/页" value="1000"></el-option>
							</el-select>
						</div>
						<div class="layui-formlayui-col-md2 layui-col-sm3 layui-col-xs6">
							<el-select id="select" v-model="dc2.gs" filterable placeholder="支持导出excel表格"
								style="background: url('../index/arrow.png') no-repeat scroll 99%;width:100%">
								<el-option label="支持导出excel表格" value="0"></el-option>
								
								<el-option label="学校+账号+密码+课程名字" value="1"></el-option>
								<el-option label="账号+密码+课程名字" value="2"></el-option>
								<el-option label="学校+账号+密码" value="3"></el-option>
								<el-option label="账号+密码" value="4"></el-option>
								<el-option label="全部导出" value="5"></el-option>
							</el-select>
						</div>
					</div>
					<div class="form-horizontal devform">
						<div class="layui-row layui-col-space10">
							<div class="layui-col-md2 layui-col-sm3 layui-col-xs6">
								<el-input v-model="cx.oid" placeholder="请输入订单ID"></el-input>
							</div>
							<div class="layui-col-md2 layui-col-sm3 layui-col-xs6">
								<el-input v-model="cx.qq" placeholder="请输入下单账号"></el-input>
							</div>
							<div class="layui-col-md2 layui-col-sm3 layui-col-xs6">
								<el-input v-model="cx.status_text" placeholder="请输入状态关键字"></el-input>
							</div>
							<div class="layui-col-md2 layui-col-sm3 layui-col-xs6">
								<el-input v-model="cx.kcname" placeholder="请输入下单课程名称"></el-input>
							</div>
							<div class="layui-col-md2 layui-col-sm3 layui-col-xs6" v-if="row.uid==1">
								<el-input v-model="cx.uid" placeholder="请输入用户UID"></el-input>
							</div>
							<div class="layui-col-md2 layui-col-sm3 layui-col-xs6">
    <input type="text" id="examStartTimeInput" v-model="cx.examStartTime" class="layui-input" placeholder="选择考试日期" required>
</div>
							<div class="layui-col-md2 layui-col-sm3  layui-col-xs6">
								<el-button type="primary" size="medium" icon="el-icon-search" value="查询"
									@click="get(1)"></el-button>&nbsp;
								<el-button style="background-color: #33CABB;border-color:#33CABB;" type="primary" size="medium" icon="el-icon-printer" value="导出"
									@click="daochu()"></el-button>
							</div>

						</div>
					</div>
				</div>
				<br>
				<div v-if="row.uid==1">
					<el-collapse>
						<el-collapse-item>
							<template slot="title"><i class="header-icon el-icon-edit"></i>&nbsp;任务状态操作</template>
							<div>
								<el-button type="warning" size="mini" icon="el-icon-time"
									@click="status_text('待处理')">待处理</el-button>
								<el-button type="success" size="mini" icon="el-icon-circle-check"
									@click="status_text('已完成')">已完成</el-button>
								<el-button type="success" size="mini" icon="el-icon-circle-check"
									@click="status_text('已考试')">已考试</el-button>
								<el-button type="primary" size="mini" icon="el-icon-loading"
									@click="status_text('进行中')">进行中</el-button>
								<el-button type="primary" size="mini" icon="el-icon-loading"
									@click="status_text('队列中')">队列中</el-button>
								<el-button type="danger" size="mini" icon="el-icon-warning-outline"
									@click="status_text('异常')">异常</el-button>
								<el-button size="mini" icon="el-icon-circle-close"
									@click="status_text('已取消')">已取消</el-button>
							</div>
						</el-collapse-item>
						</el-collapse-item>
						<el-collapse-item>
							<template slot="title"><i class="header-icon el-icon-edit"></i>&nbsp;处理状态操作</template>
							<div>
								<el-button type="warning" size="mini" @click="dock(0)">待处理</el-button>
								<el-button type="success" size="mini" @click="dock(1)">处理成功</el-button>
								<el-button type="danger" size="mini" @click="dock(2)">处理失败</el-button>
								<el-button type="info" size="mini" @click="dock(3)">重复下单</el-button>
								<el-button type="default" size="mini" @click="dock(4)">已取消</el-button>
								<el-button type="default" size="mini" @click="dock(99)">自营订单</el-button>
								<el-button type="danger" size="mini" @click="tk(sex)">订单退款</el-button><br><br>
								<el-button type="danger" size="mini" @click="sc(sex)">订单删除</el-button>
							</div>
						</el-collapse-item>
					</el-collapse>
				</div>
				<el-collapse accordion>
					<el-collapse-item>
						<template slot="title"><i class="header-icon el-icon-copy-document">&nbsp;批量操作</i>
						</template>

						<div>
							<el-button size="mini" type="success" id="checkboxAll" @click="selectAll()"
								icon="el-icon-finished">订单全选</el-button>
						
								
							<el-button size="mini"  style="background-color: #33CABB;color:white;font-bold:bold;"  @click="plzt(sex)"
								icon="el-icon-refresh">一键更新</el-button>	
						
						
						
								
							<el-button size="mini" type="primary" @click="plbs(sex)"
								icon="el-icon-edit-outline">批量补刷</el-button>
							
							<?php if ($userrow['uuid'] == 1) { ?>
								<el-button type="danger" size="mini" @click="yhsc(sex)">订单删除</el-button>

							<?php } ?>
							<!--
								<a class="btn btn-xs btn btn-primary purple" id="checkboxAll" @click="selectAll()">全选</a>
								<a class="btn btn-xs btn-info purple" @click="plzt(sex)"><i class="fa fa-send"></i>同步状态入队</a>
								<a class="btn btn-xs btn-success purple" @click="plbs(sex)"><i class="fa fa-send"></i>补刷订单入队</a>-->
						</div>

					</el-collapse-item>
				</el-collapse>
				<br>
				
				<!-- 棚子修改 -->
				<div class="layui-table table-responsive" lay-size="sm">
					<table class="table table-bordered">
						<thead>
							<tr>
								<th style="text-align: center;">
									<input type="checkbox" id="checkboxAll" @click="selectAll()" />
								</th>
								<th style="text-align: center;"><b>ID</b></th>
								<th style="text-align: center;"><b>刷新/补刷/取消/更多</b></th>
								<th style="text-align: center;"><b>渠道</b></th>
								<th style="text-align: center;"><b>学校&nbsp;账号&nbsp;密码</b></th>
								<th style="text-align: center;"><b>课程名</b></th>
								<th nowrap="nowrap" style="text-align: center;"><b>任务状态</b></th>
								<th style="text-align: center;"><b>进度</b></th>
								<th style="text-align: center;"><b>备注</b></th>
								<th style="text-align: center;"><b>提交时间</th>
								<th v-if="row.uid==1" style="text-align: center;"><b>处理状态</b></th>
								<th style="text-align: center;"><b>金额</b></th>
								<th v-if="row.uid==1" style="text-align: center;"><b>UID</b></th>
								<th v-if="row.uid==1" style="text-align: center;"><b>修改备注</b></th>
							</tr>
						</thead>
						<tbody>
							<tr v-for="res in row.data">
								<td>
									<span>
										<input type="checkbox" id="checkboxAll" :value="res.oid" v-model="sex"><label
											for="checkbox1"></label>
									</span>
								</td>
								<td style="text-align: center;">{{res.oid}}</td>
								<!-- 刷新 -->

								<td style="text-align: center;white-space:nowrap;">
									<span v-if="res.hid != '1135'" class="btn btn-xs btn-primary" @click="up(res.oid)"
										title="刷新"><i class="glyphicon glyphicon-repeat"></i> </span>

									<span class="btn btn-xs btn-warning" @click="bs(res.oid)" title="补刷"><i
											class="glyphicon glyphicon-refresh"></i> </span>
									<span class="btn btn-xs btn-danger" @click="quxiao(res.oid)" title="取消"><i
											class="glyphicon glyphicon-remove"></i> </span>
									<span class="btn btn-xs btn-primary" @click="ddinfo(res)" title="更多"><i
											class="glyphicon glyphicon-cog"></i> </span>
											<span  v-if="res.hid = '1139'" @click="mixue_log(res.oid)"
											class="btn btn-xs btn-primary">日志 </span>		
									<br> 
						
								
									
									
									<!-- 证书插件 -->
									
								</td>
								
								
									<td style="text-align: center;">{{res.ptname}}<span v-if="res.miaoshua=='1'"
											style="color: red;">&nbsp;秒刷</span></td>
								
								<td style="white-space:nowrap; width: 225">

									<button @click="copyToClipboard(res.school)"
										class="layui-btn layui-btn-xs  layui-btn-primary "><i
											class="layui-icon layui-icon-file"></i></button>&nbsp;
									<span>{{ res.school }}</span><br>
									<button @click="copyToClipboard(res.user)"
										class="layui-btn layui-btn-xs  layui-btn-primary layui-border-black"><i
											class="layui-icon layui-icon-file"></i></button>&nbsp;
									<span>{{ res.user }}</span><br>
									<button @click="copyToClipboard(res.pass)"
										class="layui-btn layui-btn-xs  layui-btn-primary layui-border-black"><i
											class="layui-icon layui-icon-file"></i></button>&nbsp;
									<span>{{ res.pass }}</span>
								<td>{{res.kcname}}
									<br>
									<a class="el-button el-button--primary is-plain el-button--mini"
										style="padding: 3px 5px;" nowrap="nowrap" v-if="res.dockstatus == 3 && (res.process === '0%' || res.process === '') && res.dockstatus !== '4'"
										@click="$message({ message: '<span style=\'display: block; margin: 5px 0;\'>重复提交订单需要联系上级</span><span style=\'display: block; margin: 5px 0;\'>不联系24小时后会自动退款</span>', type: 'warning', dangerouslyUseHTMLString: true })">重复下单</a>



								</td>


								<td nowrap="nowrap" style="text-align: center;">
									<div v-if="res.status=='待处理'" style="display: flex; align-items: center;">
										<span class="badge badge-dot-lg badge-dot bg-yellow"></span>
										<font color="#fcc525">&nbsp;{{res.status}}</font>
										<button class="button"
											style="margin-left :10px;background-color: #fcc525;color: white;"
											@click="feedback(res.oid)">
											<svg viewBox="0 0 448 512" class="bell">
												<path
													d="M224 0c-17.7 0-32 14.3-32 32V49.9C119.5 61.4 64 124.2 64 200v33.4c0 45.4-15.5 89.5-43.8 124.9L5.3 377c-5.8 7.2-6.9 17.1-2.9 25.4S14.8 416 24 416H424c9.2 0 17.6-5.3 21.6-13.6s2.9-18.2-2.9-25.4l-14.9-18.6C399.5 322.9 384 278.8 384 233.4V200c0-75.8-55.5-138.6-128-150.1V32c0-17.7-14.3-32-32-32zm0 96h8c57.4 0 104 46.6 104 104v33.4c0 47.9 13.9 94.6 39.7 134.6H72.3C98.1 328 112 281.3 112 233.4V200c0-57.4 46.6-104 104-104h8zm64 352H224 160c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7s18.7-28.3 18.7-45.3z">
												</path>
											</svg>
										</button>
									</div>

									<div v-else-if="res.status=='已完成'"><span
											class="badge badge-dot-lg badge-dot bg-success"></span>
										<font color="#15c377">&nbsp;{{res.status}}</font>

									</div>
									<div v-else-if="res.status=='进行中'"><span
											class="badge badge-dot-lg badge-dot bg-purple"></span>
										<font color="#926dde">&nbsp;{{res.status}}</font></span>
									</div>
									<div v-else-if="res.status=='异常'" style="display: flex; align-items: center;"><span
											class="badge badge-dot-lg badge-dot bg-pink"></span>
										<font color="#f96197">&nbsp;{{res.status}}</font>

										<button class="button"
											style="margin-left :10px;background-color: #f96197;color: white;"
											@click="feedback(res.oid)">
											<svg viewBox="0 0 448 512" class="bell">
												<path
													d="M224 0c-17.7 0-32 14.3-32 32V49.9C119.5 61.4 64 124.2 64 200v33.4c0 45.4-15.5 89.5-43.8 124.9L5.3 377c-5.8 7.2-6.9 17.1-2.9 25.4S14.8 416 24 416H424c9.2 0 17.6-5.3 21.6-13.6s2.9-18.2-2.9-25.4l-14.9-18.6C399.5 322.9 384 278.8 384 233.4V200c0-75.8-55.5-138.6-128-150.1V32c0-17.7-14.3-32-32-32zm0 96h8c57.4 0 104 46.6 104 104v33.4c0 47.9 13.9 94.6 39.7 134.6H72.3C98.1 328 112 281.3 112 233.4V200c0-57.4 46.6-104 104-104h8zm64 352H224 160c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7s18.7-28.3 18.7-45.3z">
												</path>
											</svg>
										</button>
									</div>
									<div v-else><span class="badge badge-dot-lg badge-dot bg-primary"></span>
										<font color="#33cabb">&nbsp;{{res.status}}</font></span>
								</td>


								<!--<td>{{res.jindu}}
						<div class="progress">
								<div aria-valuemax="100" aria-valuemin="0" aria-valuenow="60" class="progress-bar progress-bar-success active progress-bar-striped" role="progressbar" v-bind:style="'width:'+(res.jindu)+';' ">
								</div>-->
								</td>
								<td>{{res.process}}
									<div class="progress">
										<div aria-valuemax="100" aria-valuemin="0" aria-valuenow="60"
											class="progress-bar progress-bar-success active progress-bar-striped"
											role="progressbar" v-bind:style="'width:'+(res.process)+';' ">
										</div>

								</td>

								<!-- <td style="text-align: center; padding: 5; vertical-align: middle;">
									<el-progress v-if="!isNaN(parseFloat(res.process || 0 ))" type="circle"
										:percentage="parseFloat(res.process || 0)" width="60" :color="parseFloat(res.process || 0) < 10 ? '#FFC0CB' : 
				 parseFloat(res.process || 0) < 20 ? '#926dde' : 
				 parseFloat(res.process || 0) < 30 ? '#FF1493' : 
				 parseFloat(res.process || 0) < 40 ? '#DB7093' : 
				 parseFloat(res.process || 0) < 50 ? '#C71585' : 
				 parseFloat(res.process || 0) < 60 ? '#FF6347' : 
				 parseFloat(res.process || 0) < 70 ? '#FF4500' : 
				 parseFloat(res.process || 0) < 80 ? '#FF8C00' : 
				 parseFloat(res.process || 0) < 100 ? '#FFD700' : 
				 '#16d17f'">
									</el-progress>

									<div v-else>{{ res.process }}</div>
								</td> -->


								<td>{{res.remarks}}</td>
								<td style="text-align: center;">{{res.addtime}}</td>
								<td nowrap="nowrap" v-if="row.uid==1" style="text-align: center;">
									<span @click="duijie(res.oid)" v-if="res.dockstatus==0"
										class="btn btn-xs btn-info">待处理</span>
									<span v-if="res.dockstatus==1" class="btn btn-xs btn-success">处理成功</span>
									<span @click="duijie(res.oid)" v-if="res.dockstatus==2"
										class="btn btn-xs btn-danger">处理失败</span>
									<span v-if="res.dockstatus==3" class=>重复下单</span>
									<span v-if="res.dockstatus==4" class=>已取消</span>
									<span v-if="res.dockstatus==99" class="btn btn-xs btn-warning">自营</span>
								</td>

								<!-- <td style="text-align: center;">{{res.fees}}</td> -->
								<td>{{ res.fees === 0 ? '0' : (Math.floor(res.fees * 10) / 10).toString() }}</td>


								<td v-if="row.uid==1" style="text-align: center;">{{res.uid}}</td>
								<td v-if="row.uid==1" style="text-align: center;"><button @click="dd_passwd(res.oid)"  class="btn btn-xs btn-warning">修改备注</button></td>
								<!--td v-if="res.status!='已取消'"><button @click="ms(res.oid)" v-if="res.miaoshua==0" class="btn btn-xs btn-danger">秒刷</button>&nbsp;<button @click="up(res.oid)" class="btn btn-xs btn-success">更新状态</button>&nbsp;<button @click="bs(res.oid)" class="btn btn-xs btn-primary">补刷</button>&nbsp;<button @click="quxiao(res.oid)"  class="btn btn-xs btn-info">取消</button></td-->



							</tr>
						<li>查询结果：<span
									style='background-color:none!important;border:none!important;height:30px;color:#33cabb;font-size:16px;font-weight:bold;text-align:center;line-height:30px;margin-left:10px;'>{{
									row.total_count }} </span>条&nbsp;&nbsp;&nbsp;&nbsp;
								<button type="button" data-toggle="modal" data-target="#myModal2"
									class="el-tag el-tag--info el-tag--dark el-tag--medium"
									style="border-radius: 4px;">疑问解答</button>
								&nbsp;&nbsp;&nbsp;&nbsp;
								<a href="#!">
									<span class="el-tag el-tag--warning el-tag--dark el-tag--medium js-create-tab"
										data-title="可用项目" data-url="keyong"
										style="border-radius: 4px;">商品质量查询</span></a>
							</li>
							<br>
						</tbody>
						<?php
						// 检查用户ID是否为1，并根据用户ID查询状态数量
						if ($userrow['uid'] != "1") {
							// 计算用户的订单总数
							$totalCount = $DB->count("SELECT COUNT(*) FROM qingka_wangke_order WHERE uid='{$userrow['uid']}'");

							$pendingCount = $DB->count("SELECT COUNT(*) FROM qingka_wangke_order WHERE uid='{$userrow['uid']}' AND status='待处理'");
							$completedCount = $DB->count("SELECT COUNT(*) FROM qingka_wangke_order WHERE uid='{$userrow['uid']}' AND status='已完成'");
							$inProgressCount = $DB->count("SELECT COUNT(*) FROM qingka_wangke_order WHERE uid='{$userrow['uid']}' AND status='进行中'");
							$exceptionCount = $DB->count("SELECT COUNT(*) FROM qingka_wangke_order WHERE uid='{$userrow['uid']}' AND status='异常'");
							$canceledCount = $DB->count("SELECT COUNT(*) FROM qingka_wangke_order WHERE uid='{$userrow['uid']}' AND status='已取消'");
							$refundedCount = $DB->count("SELECT COUNT(*) FROM qingka_wangke_order WHERE uid='{$userrow['uid']}' AND status='已退款'");

							echo "总数: <span style='background-color:none!important;border:none!important;height:30px;color:#33cabb;font-size:16px;font-weight:bold;text-align:center;line-height:30px;margin-left:10px;'>" . $totalCount . "</span> | ";
							echo "待处理数量: <span style='background-color:none!important;border:none!important;height:30px;color:#33cabb;font-size:16px;font-weight:bold;text-align:center;line-height:30px;margin-left:10px;'>" . $pendingCount . "</span> | ";
							echo "已完成数量: <span style='background-color:none!important;border:none!important;height:30px;color:#33cabb;font-size:16px;font-weight:bold;text-align:center;line-height:30px;margin-left:10px;'>" . $completedCount . "</span> | ";
							echo "进行中数量: <span style='background-color:none!important;border:none!important;height:30px;color:#33cabb;font-size:16px;font-weight:bold;text-align:center;line-height:30px;margin-left:10px;'>" . $inProgressCount . "</span> | ";
							echo "异常数量: <span style='background-color:none!important;border:none!important;height:30px;color:#33cabb;font-size:16px;font-weight:bold;text-align:center;line-height:30px;margin-left:10px;'>" . $exceptionCount . "</span> | ";
							echo "已取消数量: <span style='background-color:none!important;border:none!important;height:30px;color:#33cabb;font-size:16px;font-weight:bold;text-align:center;line-height:30px;margin-left:10px;'>" . $canceledCount . "</span> | ";
							echo "已退款数量: <span style='background-color:none!important;border:none!important;height:30px;color:#33cabb;font-size:16px;font-weight:bold;text-align:center;line-height:30px;margin-left:10px;'>" . $refundedCount . "</span> | ";

						} else {
							// 处理管理员用户
							// 计算所有订单的总数
							$totalCount = $DB->count("SELECT COUNT(*) FROM qingka_wangke_order");

							$pendingCount = $DB->count("SELECT COUNT(*) FROM qingka_wangke_order WHERE status='待处理'");
							$completedCount = $DB->count("SELECT COUNT(*) FROM qingka_wangke_order WHERE status='已完成'");
							$inProgressCount = $DB->count("SELECT COUNT(*) FROM qingka_wangke_order WHERE status='进行中'");
							$exceptionCount = $DB->count("SELECT COUNT(*) FROM qingka_wangke_order WHERE status='异常'");
							$canceledCount = $DB->count("SELECT COUNT(*) FROM qingka_wangke_order WHERE status='已取消'");
							$refundedCount = $DB->count("SELECT COUNT(*) FROM qingka_wangke_order WHERE status='已退款'");


							echo "总数: <span style='background-color:none!important;border:none!important;height:30px;color:#33cabb;font-size:16px;font-weight:bold;text-align:center;line-height:30px;margin-left:10px;'>" . $totalCount . "</span> | ";
							echo "待处理数量: <span style='background-color:none!important;border:none!important;height:30px;color:#33cabb;font-size:16px;font-weight:bold;text-align:center;line-height:30px;margin-left:10px;'>" . $pendingCount . "</span> | ";
							echo "已完成数量: <span style='background-color:none!important;border:none!important;height:30px;color:#33cabb;font-size:16px;font-weight:bold;text-align:center;line-height:30px;margin-left:10px;'>" . $completedCount . "</span> | ";
							echo "进行中数量: <span style='background-color:none!important;border:none!important;height:30px;color:#33cabb;font-size:16px;font-weight:bold;text-align:center;line-height:30px;margin-left:10px;'>" . $inProgressCount . "</span> | ";
							echo "异常数量: <span style='background-color:none!important;border:none!important;height:30px;color:#33cabb;font-size:16px;font-weight:bold;text-align:center;line-height:30px;margin-left:10px;'>" . $exceptionCount . "</span> | ";
							echo "已取消数量: <span style='background-color:none!important;border:none!important;height:30px;color:#33cabb;font-size:16px;font-weight:bold;text-align:center;line-height:30px;margin-left:10px;'>" . $canceledCount . "</span> | ";
							echo "已退款数量: <span style='background-color:none!important;border:none!important;height:30px;color:#33cabb;font-size:16px;font-weight:bold;text-align:center;line-height:30px;margin-left:10px;'>" . $refundedCount . "</span> | ";

						}
						?>

						</li>
					</table>


				</div>


				<ul class="pagination pagination-circle" v-if="row.last_page>1">
					<li class="disabled"><a @click="get(1)">首页</a></li>
					<li class="disabled"><a @click="row.current_page>1?get(row.current_page-1):''">&laquo;</a></li>
					<li @click="get(row.current_page-3)" v-if="row.current_page-3>=1"><a>{{ row.current_page-3 }}</a>
					</li>
					<li @click="get(row.current_page-2)" v-if="row.current_page-2>=1"><a>{{ row.current_page-2 }}</a>
					</li>
					<li @click="get(row.current_page-1)" v-if="row.current_page-1>=1"><a>{{ row.current_page-1 }}</a>
					</li>
					<li :class="{'active':row.current_page==row.current_page}" @click="get(row.current_page)"
						v-if="row.current_page"><a>{{ row.current_page }}</a></li>
					<li @click="get(row.current_page+1)" v-if="row.current_page+1<=row.last_page">
						<a>{{ row.current_page+1 }}</a>
					</li>
					<li @click="get(row.current_page+2)" v-if="row.current_page+2<=row.last_page">
						<a>{{ row.current_page+2 }}</a>
					</li>
					<li @click="get(row.current_page+3)" v-if="row.current_page+3<=row.last_page">
						<a>{{ row.current_page+3 }}</a>
					</li>
					<li class="disabled"><a
							@click="row.last_page>row.current_page?get(row.current_page+1):''">&raquo;</a></li>
					<li class="disabled"><a @click="get(row.last_page)">尾页</a></li>

				</ul>
				<!-- 棚子修改结束 -->

				<div id="ddinfo2" style="display: none;"><!--订单详情-->
					<li class="list-group-item">
						<b>课程类型：</b>{{ddinfo3.info.ptname}}<span v-if="ddinfo3.info.miaoshua=='1'"
							style="color: red;">&nbsp;秒刷</span>
					</li>
					<li class="list-group-item" style="word-break:break-all;">
						<b>账号信息：</b>{{ddinfo3.info.school}}&nbsp;{{ddinfo3.info.user}}&nbsp;{{ddinfo3.info.pass}}
					</li>
					<li class="list-group-item"><b>课程名字：</b>{{ddinfo3.info.kcname}}</li>
					<li class="list-group-item" v-if="ddinfo3.info.name!='null'"><b>学生姓名：</b>{{ddinfo3.info.name}}</li>
					<li class="list-group-item"><b>下单时间：</b>{{ddinfo3.info.addtime}}</li>
					<li class="list-group-item"><b>课程kcid：</b>{{ddinfo3.info.kcid}}</li>
					<li class="list-group-item" v-if="ddinfo3.info.courseStartTime">
						<b>课程开始时间：</b>{{ddinfo3.info.courseStartTime}}
					</li>
					<li class="list-group-item" v-if="ddinfo3.info.courseEndTime">
						<b>课程结束时间：</b>{{ddinfo3.info.courseEndTime}}
					</li>
					<li class="list-group-item" v-if="ddinfo3.info.examStartTime">
						<b>考试开始时间：</b>{{ddinfo3.info.examStartTime}}
					</li>
					<li class="list-group-item" v-if="ddinfo3.info.examEndTime">
						<b>考试结束时间：</b>{{ddinfo3.info.examEndTime}}
					</li>
					<li class="list-group-item"><b>订单状态：</b>
						<span style="color: red;">{{ddinfo3.info.status}}</span>&nbsp;

						<button v-if="ddinfo3.info.dockstatus!='99'" @click="up(ddinfo3.info.oid)"
							class="el-button el-button--success is-plain el-button--mini">
					<li class="el-icon-refresh"></li>刷新</button>&nbsp;
					</li>
					<li class="list-group-item"><b>进度：</b>{{ddinfo3.info.process}}
						<div class="progress">
							<div aria-valuemax="100" aria-valuemin="0" aria-valuenow="60"
								class="progress-bar progress-bar-info progress-bar-striped" role="progressbar"
								v-bind:style="'width:'+(ddinfo3.info.process)+';' ">
							</div>
						</div>
					</li>
					<li class="list-group-item" v-if="ddinfo3.info.remarks"><b>备注：</b>{{ddinfo3.info.remarks}}</li>
					<li class="list-group-item" v-if="ddinfo3.info.status!='已取消'"><b>操作：</b><button
							@click="ms(ddinfo3.info.oid)" v-if="ddinfo3.info.miaoshua=='1'"
							class="btn btn-xs btn-danger">秒刷</button>&nbsp;

					
						<button @click="bs(ddinfo3.info.oid)" class="btn btn-xs btn-primary">补刷</button>&nbsp;
					
						<button @click="quxiao(ddinfo3.info.oid)" class="btn btn-xs btn-default">取消</button>

						<button v-if="ddinfo3.info.fenlei=='141'" @click="zt(ddinfo3.info.oid)"
							class="btn btn-xs btn-danger">停止</button>&nbsp;

						<button v-if="ddinfo3.info.fenlei=='141'" @click="xgmm(ddinfo3.info.oid)"
							class="btn btn-xs btn-info">改密码</button>&nbsp;


						<button v-if="ddinfo3.info.fenlei=='141'" @click="mss(ddinfo3.info.oid)"
							class="btn btn-xs btn-pink">秒刷</button>&nbsp;

						
					</li>


					



				</div>
			</div>

		</div>
	</div>
</div>


<script type="text/javascript" src="assets/LightYear/js/jquery.min.js"></script>
<script type="text/javascript" src="assets/LightYear/js/bootstrap.min.js"></script>
<script type="text/javascript" src="assets/LightYear/js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="assets/LightYear/js/main.min.js"></script>
<script src="assets/js/aes.js"></script>
<script src="assets/js/vue.min.js"></script>
<script src="assets/js/vue-resource.min.js"></script>
<script src="assets/js/axios.min.js"></script>
<script src="assets/layui/layui.js"></script>
<script src="assets/js/element.js"></script>
<script src="assets/LightYear/js/xlsx.full.min.js"></script>

<script>
	vm = new Vue({
		el: "#orderlist",
		data: {
			selectedFile: null,
			gid:0,
			
			row: [],
			phone: '',
			list: '',
			sex: [],
			activeName: '1',// 设置默认展开的项
			ddinfo3: {
				status: false,
				info: []
			},
			dc: [],
			dc2: {
				gs: '0'
			},
			cx: {
				status_text: '',
				examStartTime:'',
				dock: '',
				qq: '',
				oid: '',
				uid: '',
				cid: '',
				kcname: '',
				status: '',
				pagesize: '25',
			},

		},
		methods: {
		
			
			copyToClipboard(text) {
				if (navigator.clipboard) {
					navigator.clipboard.writeText(text).then(() => {
						layer.msg('已复制:' + text, { icon: 1 });
					}, (err) => {
						layer.msg('复制失败: ' + err, { icon: 2 });
					});
				} else {
					const textarea = document.createElement('textarea');
					textarea.value = text;
					document.body.appendChild(textarea);
					textarea.select();
					document.execCommand('copy');
					document.body.removeChild(textarea);
					layer.msg('已复制:' + text, { icon: 1 });
				}
			}, 
			// onFileChange(event) {
			// 	this.selectedFile = event.target.files[0];
			// 	alert(this.selectedFile)
			// },
		
			get: function (page) {
				var load = layer.load(2);
				data = {
					cx: this.cx,
					page
				}
				this.$http.post("/apisub.php?act=orderlist", data, {
					emulateJSON: true
				}).then(function (data) {
					layer.close(load);
					if (data.data.code == 1) {
						this.row = data.body;
					} else {
						layer.msg(data.data.msg, {
							icon: 2
						});
					}
				});
			},

            mixue_log: function (oid) {
				var modal = $('#modal-log');
				var logList = $('#log-list');
				var loading = layer.load(2);
				
				// 清空日志列表并添加加载动画
				logList.empty();
				logList.html('<div class="text-center py-5"><i class="fa fa-spinner fa-spin" style="font-size: 3rem; color: #33CABB;"></i><p class="mt-3 text-muted">正在加载日志数据...</p></div>');
				
				// 显示模态窗口并添加加载效果
				modal.modal('show');
				
				$.ajax({
					url: "/apisub.php?act=get_mixue_log&oid=" + oid,
					type: "GET",
					dataType: "json",
					success: function (response) {
						console.log("日志查询返回:", response); // 添加调试信息
						
						// 延迟执行，添加平滑过渡效果
						setTimeout(function() {
							// 清空日志列表
							logList.empty();
							
							// 添加标题
							var titleItem = $('<li class="list-group-item border-0" style="background-color: #f8f9fa; padding: 15px 20px;"></li>');
							titleItem.append('<h5 class="mb-0" style="color: #33CABB; font-weight: 600;"><i class="fa fa-file-text-o mr-2"></i>订单 <span style="background-color: #33CABB; color: white; padding: 2px 8px; border-radius: 20px; font-size: 14px;">' + oid + '</span> 的日志记录</h5>');
							logList.append(titleItem);
							
							// 检查返回数据格式 - 修改这里以适应新的数据格式
							if (response && response.code === 1 && response.msg === "获取日志成功") {
								// 处理没有数据的情况
								if (!response.data || response.data.length === 0) {
									var emptyItem = $('<li class="list-group-item text-center py-5 border-0"></li>');
									emptyItem.append('<div class="empty-state" style="padding: 20px;"><i class="fa fa-file-o" style="font-size: 48px; color: #ddd;"></i><p class="mt-3 text-muted">暂无日志记录</p></div>');
									logList.append(emptyItem);
								} else {
									// 处理有数据的情况
									response.data.forEach(function (item, index) {
										// 创建带动画效果的日志项
										var logItem = $('<li class="list-group-item border-0 log-item" style="padding: 15px 20px; margin-bottom: 1px; animation: fadeInDown ' + (0.2 + index * 0.1) + 's ease forwards; opacity: 0; transform: translateY(-10px);"></li>');
										
										// 日期容器
										var dateContainer = $('<div class="date-container" style="display: flex; align-items: center; margin-bottom: 8px;"></div>');
										dateContainer.append('<span class="badge badge-pill" style="background-color: #e9f6f7; color: #33CABB; padding: 5px 10px; font-weight: normal; border-radius: 30px;"><i class="fa fa-clock-o mr-1"></i> ' + (item.add_time || '未知时间') + '</span>');
										
										// 添加日期容器
										logItem.append(dateContainer);
										
										// 详细信息内容
										var processContent = '';
										if (item.remarks) {
											processContent = item.remarks;
											
											// 检测特定格式并添加强调
											if (processContent.includes('作答情况')) {
												processContent = processContent.replace(/【(.*?)】/, function(match, p1) {
													return '<span style="background-color: #fff4de; padding: 2px 6px; border-radius: 4px; color: #ff9800; display: inline-block; margin-top: 5px;">【' + p1 + '】</span>';
												});
											}
										} else {
											processContent = '无';
										}
										
										// 内容容器
										var contentBox = $('<div class="content-box" style="background-color: #f8f9fa; border-radius: 8px; padding: 15px; transition: all 0.3s;"></div>');
										contentBox.append('<div class="log-content">' + processContent + '</div>');
										
										// 添加内容容器
										logItem.append(contentBox);
										
										// 添加鼠标悬停效果
										logItem.hover(
											function() {
												$(this).find('.content-box').css({
													'background-color': '#edf9fa',
													'box-shadow': '0 2px 8px rgba(50, 197, 210, 0.1)'
												});
											},
											function() {
												$(this).find('.content-box').css({
													'background-color': '#f8f9fa',
													'box-shadow': 'none'
												});
											}
										);
										
										logList.append(logItem);
									});
								}
							} else {
								// 显示错误信息
								var errorItem = $('<li class="list-group-item text-center py-4 border-0"></li>');
								errorItem.append('<div class="error-state" style="padding: 20px;"><i class="fa fa-exclamation-triangle" style="font-size: 48px; color: #ff9800;"></i><p class="mt-3" style="color: #ff9800;">' + response.msg + '</p></div>');
								logList.append(errorItem);
								
								console.error("服务器返回数据格式错误:", response);
							}
							
							// 添加CSS动画
							var style = document.createElement('style');
							style.innerHTML = `
								@keyframes fadeInDown {
									from {
										opacity: 0;
										transform: translateY(-10px);
									}
									to {
										opacity: 1;
										transform: translateY(0);
									}
								}
								.log-item {
									transition: background-color 0.3s;
								}
								.log-item:hover {
									background-color: #fafafa;
								}
								.btn-primary:hover {
									transform: translateY(-2px);
									box-shadow: 0 5px 10px rgba(50,197,210,0.4) !important;
								}
							`;
							document.head.appendChild(style);
							
						}, 500); // 延迟500毫秒，增强动画效果
						
						// 关闭加载提示
						layer.close(loading);
					},
					error: function (xhr, status, error) {
						console.error("请求失败:", error);
						
						// 显示错误信息
						logList.empty();
						var errorItem = $('<li class="list-group-item text-center py-4 border-0"></li>');
						errorItem.append('<div class="error-state" style="padding: 20px;"><i class="fa fa-exclamation-circle" style="font-size: 48px; color: #ff5252;"></i><p class="mt-3" style="color: #ff5252;">获取日志失败，请重试</p></div>');
						logList.append(errorItem);
						
						// 关闭加载提示
						layer.close(loading);
					},
					complete: function () {
						layer.close(loading);
					}
				});
			},

			removepercent: function (text) {
				function isNumeric(value) {
					return !isNaN(parseFloat(value)) && isFinite(value) && typeof value !== 'boolean';
				}
				if (isNumeric(text.split('%').join())) {
					return text.split('%').join();
				}
				return false;
			},
			getclass: function () {
				var load = layer.load();
				this.$http.post("/apisub.php?act=getclass").then(function (data) {
					layer.close(load);
					if (data.data.code == 1) {
						this.class1 = data.body.data;
					} else {
						layer.msg(data.data.msg, {
							icon: 2
						});
					}
				});

			},
			getname: function (oid) {
				var load = layer.load(2);
				$.get("/apisub.php?act=getname&oid=" + oid, function (data) {
					layer.close(load);
					if (data.code == 1) {
						layer.msg(data.msg, {
							icon: 1
						});
					} else {
						layer.msg(data.msg, {
							icon: 2
						});
					}
				});
			},
		
			feedback: function(oid) {
    var self = this;
    layer.prompt({
        title: '请用简短的一句话描述问题，只需要输入问题！',
        formType: 2,
        placeholder: '请输入问题描述...'
    }, function(feedbackText, index) {
        layer.close(index);
        feedbackText = feedbackText.trim();

        if (feedbackText === '') {
            layer.msg('反馈内容不能为空', {icon: 2});
            return;
        }
        if (/\d|[a-zA-Z]/.test(feedbackText)) {
            layer.msg('反馈内容不能包含数字和字母', {icon: 2});
            return;
        }

        var load = layer.load();
        $.get("/gd.php?act=feedback&oid=" + oid, { feedback: feedbackText }, function(data) {
            layer.close(load);
            if (data.code === 1) {
                layer.msg('反馈成功，请在我的反馈中查看', {icon: 1});
            } else {
                layer.msg('反馈失败: ' + data.msg, {icon: 2});
            }
        });
    });
},
			bs: function (oid) {
				layer.confirm('建议漏看或者进度被重置的情况下使用。<br>频繁点击补刷会出现不可预测的结果<br>请问是否补刷所选的任务？', {
					title: '温馨提示',
					icon: 3,
					btn: ['确定补刷', '取消'] //按钮
				}, function () {
					var load = layer.load(2);
					$.get("/apisub.php?act=bs&oid=" + oid, function (data) {
						layer.close(load);
						if (data.code == 1) {
							vm.get(vm.row.current_page);
							layer.alert(data.msg, {
								icon: 1
							});
						} else {
							layer.msg(data.msg, {
								icon: 2
							});
						}
					});
				});
			},
			up: function (oid) {
				var load = layer.load(2);
				this.$message({
                        message: '正在同步....',
                        type: 'warning',
                        dangerouslyUseHTMLString: true
                    });

				$.ajax({
					url: "/apisub.php?act=uporder&oid=" + oid,
					method: "GET",
					timeout: 10000,  // 设置超时时间为10秒（10000毫秒）
					success: function (data) {
						layer.close(load);
if (data.code == 1) {
    vm.get(vm.row.current_page);
    setTimeout(() => { 
        for (let i = 0; i < vm.row.data.length; i++) {
            if (vm.row.data[i].oid == oid) {
                vm.ddinfo3.info = vm.row.data[i];
                console.log(vm.row.data[i].oid);
                console.log(vm.row.data[i].status);
                console.log(vm.ddinfo3.info.status);
                return true;
            }
        }
    }, 1800);

    
    vm.$message({
        message: data.msg,
        type: 'success', // 成功消息
        duration: 2000 // 消息显示时长
    });


							
						} else {
							layer.msg(data.msg, {
								icon: 2
							});
						}
					},
					error: function (xhr, status, error) {
						layer.close(load);
						if (status === "timeout") {
							layer.msg("10秒没同步，已中断了，不然加载一年", {
								icon: 2
							});
						} else {
							layer.msg("请求失败: " + error, {
								icon: 2
							});
						}
					}
				});
			},

			plzt: function (sex) {
				if (this.sex == '') {
					layer.msg("请先选择订单！");
					return false;
				}
				layer.confirm('是否确认入队，入队后等待线程执行即可，禁止一直重复入队！20分钟内订单禁止入队，切记', {
					title: '温馨提示',
					icon: 3,
					btn: ['确认', '取消']
				}, function () {
					var load = layer.load();
					$.post("/apisub.php?act=plzt", {
						sex: sex
					}, {
						emulateJSON: true
					}).then(function (data) {
						layer.close(load);
						if (data.code == 1) {
							vm.selectAll();
							vm.get(vm.row.current_page);
							layer.msg(data.msg, {
								icon: 1
							});
						} else {
							layer.msg(data.msg, {
								icon: 2
							});
						}
					});
				});
			},
			plbs: function (sex) {
				if (this.sex == '') {
					layer.msg("请先选择订单！");
					return false;
				}
				layer.confirm('是否确认入队补刷，入队后等待线程执行即可，禁止一直重复入队！20分钟内订单禁止入队，切记', {
					title: '温馨提示',
					icon: 3,
					btn: ['确认', '取消']
				}, function () {
					var load = layer.load();
					$.post("/apisub.php?act=plbs", {
						sex: sex
					}, {
						emulateJSON: true
					}).then(function (data) {
						layer.close(load);
						if (data.code == 1) {
							vm.selectAll();
							vm.get(vm.row.current_page);
							layer.msg(data.msg, {
								icon: 1
							});
						} else {
							layer.msg(data.msg, {
								icon: 2
							});
						}
					});
				});
			},
			duijie: function (oid) {
				layer.confirm('确定处理么?', {
					title: '温馨提示',
					icon: 3,
					btn: ['确定', '取消'] //按钮
				}, function () {
					var load = layer.load(2);

					// 设置请求超时
					$.ajax({
						url: "/apisub.php?act=duijie&oid=" + oid,
						type: "GET",
						timeout: 5000, // 请求超过5秒超时
						success: function (data) {
							layer.close(load);
							if (data.code == 1) {
								vm.get(vm.row.current_page);
								layer.alert(data.msg, {
									icon: 1
								});
							} else {
								layer.msg(data.msg, {
									icon: 2
								});
							}
						},
						error: function (jqXHR, textStatus) {
							layer.close(load);
							if (textStatus === 'timeout') {
								layer.msg('请求超时，请稍后再试', { icon: 2 });
							} else {
								layer.msg('请求失败，请检查网络', { icon: 2 });
							}
						}
					});
				});
			},
 dd_passwd: function(oid) {
    console.log(oid)
    // 创建输入框的HTML
    var inputHtml = '<input class="form-control" type="text" id="web_site_copyright" name="web_site_copyright" value="" placeholder="请输入新备注">';
    
    // 使用 layui 的 layer.open 打开一个自定义的模态框
    layer.open({
        title: '输入新备注',
        content: inputHtml,
        area: ['400px', '240px'], // 设置弹出框的大小
        btn: ['确定', '取消'],
        yes: function(index, layero) {
            // 确定按钮的回调函数
            var password = layero.find('#web_site_copyright').val(); // 获取输入的值
            if (!password) {
                layer.msg('请输入备注', { icon: 2 });
                return;
            }
            
            var load = layer.load();
            $.post("/apisub.php?act=dd_passwd", { oid: oid, pwd: password }, function(data) {
                layer.close(load);
                if (data.code == 1) {
                    layer.close(index);
                    $("#ddinfo2").hide();
                    vm.get(vm.row.current_page);
                    layer.alert(data.msg, { icon: 1 });
                } else {
                    layer.msg(data.msg, { icon: 2 });
                }
            });
        },
        btn2: function(index, layero) {
            // 取消按钮的回调函数
            layer.close(index);
        },
        success: function(layero, index) {
            // 打开时的处理, 可以根据需要做一些初始化
        }
    });
},

			getname: function (oid) {
				var load = layer.load(2);
				$.get("/apisub.php?act=getname&oid=" + oid, function (data) {
					layer.close(load);
					if (data.code == 1) {
						layer.msg(data.msg, {
							icon: 1
						});
					} else {
						layer.msg(data.msg, {
							icon: 2
						});
					}
				});
			},
			
			quxiao: function (oid) {
				layer.confirm('取消订单将无法退款，确定取消吗', {
					title: '温馨提示',
					icon: 3,
					btn: ['确定', '取消'] //按钮
				}, function () {
					var load = layer.load(2);
					$.get("/apisub.php?act=qx_order&oid=" + oid, function (data) {
						layer.close(load);
						if (data.code == 1) {
							vm.get(vm.row.current_page);
							layer.alert(data.msg, {
								icon: 1
							});
						} else {
							layer.msg(data.msg, {
								icon: 2
							});
						}
					});
				});
			},
			status_text: function (a) {
				var load = layer.load(2);
				$.post("/apisub.php?act=status_order&a=" + a, {
					sex: this.sex,
					type: 1
				}, {
					emulateJSON: true
				}).then(function (data) {
					layer.close(load);
					if (data.code == 1) {
						vm.selectAll();
						vm.get(vm.row.current_page);
						layer.msg(data.msg, {
							icon: 1
						});
					} else {
						layer.msg(data.msg, {
							icon: 2
						});
					}
				});
			},
			dock: function (a) {
				var load = layer.load(2);
				$.post("/apisub.php?act=status_order&a=" + a, {
					sex: this.sex,
					type: 2
				}, {
					emulateJSON: true
				}).then(function (data) {
					layer.close(load);
					if (data.code == 1) {
						vm.selectAll();
						vm.get(vm.row.current_page);
						layer.msg(data.msg, {
							icon: 1
						});
					} else {
						layer.msg(data.msg, {
							icon: 2
						});
					}
				});
			},
			selectAll: function () {
				if (this.sex.length == 0) {
					for (i = 0; i < vm.row.data.length; i++) {
						vm.sex.push(this.row.data[i].oid)
					}
				} else {
					this.sex = []
				}
			},
			ddinfo: function (a) {
				this.ddinfo3.info = a;
				var load = layer.load(2, {
					time: 300
				});
				setTimeout(function () {
					layer.open({
						type: 1,
						title: '订单详情操作',
						skin: 'layui-layer-demo',
						closeBtn: 1,
						anim: 2,
						shadeClose: true,
						content: $('#ddinfo2'),
						end: function () {
							$("#ddinfo2").hide();
						}
					});
				}, 100);

			},
			bs: function (oid) {
				layer.confirm('建议漏看或者进度被重置的情况下使用。<br>频繁点击补刷会出现不可预测的结果<br>请问是否补刷所选的任务？', {
					title: '温馨提示',
					icon: 3,
					btn: ['确定补刷', '取消'] //按钮
				}, function () {
					var load = layer.load(2);
					$.get("/apisub.php?act=bs&oid=" + oid, function (data) {
						layer.close(load);
						if (data.code == 1) {
							vm.get(vm.row.current_page);
							layer.alert(data.msg, {
								icon: 1
							});
						} else {
							layer.msg(data.msg, {
								icon: 2
							});
						}
					});
				});
			},
		
			tk: function (sex) {
				if (this.sex == '') {
					layer.msg("请先选择订单！");
					return false;
				}
				layer.confirm('确定要退款吗？陛下，三思三思！！！', {
					title: '温馨提示',
					icon: 3,
					btn: ['确定', '取消']
				}, function () {
					var load = layer.load();
					$.post("/apisub.php?act=tk", {
						sex: sex
					}, {
						emulateJSON: true
					}).then(function (data) {
						layer.close(load);
						if (data.code == 1) {
							vm.selectAll();
							vm.get(vm.row.current_page);
							layer.msg(data.msg, {
								icon: 1
							});
						} else {
							layer.msg(data.msg, {
								icon: 2
							});
						}
					});
				});
			},
			sc: function (sex) {
				if (this.sex == '') {
					layer.msg("请先选择订单！");
					return false;
				}
				layer.confirm('确定要删除此订单信息？', {
					title: '温馨提示',
					icon: 3,
					btn: ['确定', '取消']
				}, function () {
					var load = layer.load();
					$.post("/apisub.php?act=sc", {
						sex: sex
					}, {
						emulateJSON: true
					}).then(function (data) {
						layer.close(load);
						if (data.code == 1) {
							vm.selectAll();
							vm.get(vm.row.current_page);
							layer.msg(data.msg, {
								icon: 1
							});
						} else {
							layer.msg(data.msg, {
								icon: 2
							});
						}
					});
				});
			},
			


			yhsc: function (sex) {
				if (this.sex.length === 0) {
					layer.msg("请先选择订单！");
					return false;
				}

				// 检查选中的订单是否都为“已完成”
				const incompleteOrders = this.row.data.filter(order => this.sex.includes(order.oid) && (order.status !== '已完成' && order.status !== '异常' && order.status !== '已退款' && order.status !== '已取消' && order.status !== '待支付'));


				if (incompleteOrders.length > 0) {
					layer.msg("此任务状态不支持删除", { icon: 2 });
					return;
				}

				layer.confirm('订单删除记录并不是退款，切记！！', {
					title: '温馨提示',
					icon: 3,
					btn: ['确定', '取消']
				}, function () {
					var load = layer.load();
					$.post("/apisub.php?act=yhsc", {
						sex: sex
					}, {
						emulateJSON: true
					}).then(function (data) {
						layer.close(load);
						if (data.code === 1) {
							vm.selectAll();
							vm.get(vm.row.current_page);
							layer.msg(data.msg, { icon: 1 });
						} else {
							layer.msg(data.msg, { icon: 2 });
						}
					});
				});
			},

			
	daochu: function () {
    // 检查格式选择
    if (this.dc2.gs == '0') {
        layer.msg("请先选择格式", {
            icon: 2
        });
        return false;
    }
    // 检查是否选择订单
    if (!this.sex[0]) {
        layer.msg("请先选择订单", {
            icon: 2
        });
        return false;
    }

 
    var exportData = [];
    var header = []; 

    // 根据选择的格式构建表头
    if (this.dc2.gs == '1') {
        header = ["学校", "账号", "密码", "课程名"];
    } else if (this.dc2.gs == '2') {
        header = ["账号", "密码", "课程名"];
    } else if (this.dc2.gs == '3') {
        header = ["学校", "账号", "密码"];
    } else if (this.dc2.gs == '4') {
        header = ["账号", "密码"];
    } else if (this.dc2.gs == '5') {
        header = ["学校", "账号", "密码", "课程名", "任务状态", "进度", "备注", "提交时间"];
    }

    exportData.push(header); 

    for (var i = 0; i < this.sex.length; i++) {
        var oid = this.sex[i];
        for (var x = 0; x < this.row.data.length; x++) {
            if (this.row.data[x].oid == oid) {
                var school = this.row.data[x].school;
                var user = this.row.data[x].user;
                var pass = this.row.data[x].pass;
                var kcname = this.row.data[x].kcname;
                var status = this.row.data[x].status;
                var process = this.row.data[x].process;
                var remarks = this.row.data[x].remarks;
                var addtime = this.row.data[x].addtime;
                var a;

                if (this.dc2.gs == '1') {
                    a = [school, user, pass, kcname];
                } else if (this.dc2.gs == '2') {
                    a = [user, pass, kcname];
                } else if (this.dc2.gs == '3') {
                    a = [school, user, pass];
                } else if (this.dc2.gs == '4') {
                    a = [user, pass];
                } else if (this.dc2.gs == '5') {
                    a = [school, user, pass, kcname, status, process, remarks, addtime];
                }

                exportData.push(a); 
            }
        }
    }

    
    var ws = XLSX.utils.aoa_to_sheet(exportData); 
    var wb = XLSX.utils.book_new(); 
    XLSX.utils.book_append_sheet(wb, ws, "秒课订单"); 

    // 导出文件
    var fileName = "秒课订单导出.xlsx"; // 文件名
    XLSX.writeFile(wb, fileName); // 导出文件
}


		},
		mounted() {
			this.get(1);
			  // 初始化 Layui 日期选择器
    layui.use('laydate', function() {
        var laydate = layui.laydate;

        // 日期选择器
        laydate.render({
            elem: '#examStartTimeInput', // 指定元素
            type: 'date', // 只选择日期
            done: function(value, date) {
                // 将选择的日期赋值给 Vue 的 data
                vm.cx.examStartTime = value; // 直接赋值，value已经是YYYY-MM-DD格式
            }
        });
    });
		}
	});
</script>

<script>
	//禁止鼠标右击
	document.oncontextmenu = function () {
		event.returnValue = false;
	};
	//禁用开发者工具F12
	document.onkeydown = document.onkeyup = document.onkeypress = function (event) {
		let e = event || window.event || arguments.callee.caller.arguments[0];
		if (e && e.keyCode == 123) {
			e.returnValue = false;
			return false;
		}
	};
	let userAgent = navigator.userAgent;
	if (userAgent.indexOf("Firefox") > -1) {
		let checkStatus;
		let devtools = /./;
		devtools.toString = function () {
			checkStatus = "on";
		};
		setInterval(function () {
			checkStatus = "off";
			console.log(devtools);
			console.log(checkStatus);
			console.clear();
			if (checkStatus === "on") {
				let target =;
				try {
					window.open("about:blank", (target = "_self"));
				} catch (err) {
					let a = document.createElement("button");
					a.onclick = function () {
						window.open("about:blank", (target = "_self"));
					};
					a.click();
				}
			}
		}, 200);
	} else {
		//禁用控制台
		let ConsoleManager = {
			onOpen: function () {
				alert("Console is opened");
			},
			onClose: function () {
				alert("Console is closed");
			},
			init: function () {
				let self = this;
				let x = document.createElement("div");
				let isOpening = false,
					isOpened = false;
				Object.defineProperty(x, "id", {
					get: function () {
						if (!isOpening) {
							self.onOpen();
							isOpening = true;
						}
						isOpened = true;
						return true;
					}
				});
				setInterval(function () {
					isOpened = false;
					console.info(x);
					console.clear();
					if (!isOpened && isOpening) {
						self.onClose();
						isOpening = false;
					}
				}, 200);
			}
		};
		ConsoleManager.onOpen = function () {
			//打开控制台，跳转
			let target =;
			try {
				window.open("about:blank", (target = "_self"));
			} catch (err) {
				let a = document.createElement("button");
				a.onclick = function () {
					window.open("about:blank", (target = "_self"));
				};
				a.click();
			}
		};
		ConsoleManager.onClose = function () {
			alert("Console is closed!!!!!");
		};
		ConsoleManager.init();
	}
</script>

